#flash= flash[:error]
#content-title
  %h1 Event
#event-listings
  .listing
    %table
      %tr
        %th Name: 
        %td= @event.name
      %tr
        %th Time:
        %td= @event.start_time.strftime("%a %d/%m/%y %H:%M")   
      %tr
        %th Place:
        %td= @event.place
      %tr
        %th Cost:
        %td=@event.cost || "Free".t
      %tr
        %th Description:
        %td= @event.description
      %tr
        %th Categories
        %td
          - @event.categories.each do |category|
          = category.name
          - end
    - if @event.series
      This event is part of the series:
      %a{:href => one_series_url(@event.series)}= @event.series.name
    %a.listings-navigation{:href => events_url} Back to Events
    - unless @event.end_time < Time.now
      %a.listings-navigation{:href => edit_event_url} Edit Event